Skip to content

feat: Prioritize pseudoselectors over renders#9688

Open
wisniewskij wants to merge 6 commits into
mainfrom
@wisniewskij/pseudoselectors-priority-over-rerender
Open

feat: Prioritize pseudoselectors over renders#9688
wisniewskij wants to merge 6 commits into
mainfrom
@wisniewskij/pseudoselectors-priority-over-rerender

Conversation

@wisniewskij

Copy link
Copy Markdown
Contributor

Summary

Currently changing the style of an object with pseudoselector during render will overwrite the effect of pseudoselector. It's not something that happens on web - pseudoselector (tagged with !important as in our web implementation) should be more important.

This PR tries to fix that.

Test plan

CSS -> Transitions -> Pseudoselectors ->
image

@wisniewskij wisniewskij requested a review from MatiPl01 June 17, 2026 11:31

@MatiPl01 MatiPl01 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for now

transitionTimingFunction: 'linear',
},
]}
onStartShouldSetResponder={() => true}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes the Animated.View a touch target so the press actually registers.; the alternative is wrapping in Pressable (like Form.tsx), but that's "heavier"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But I will look into that - maybe we can easily change that so user doesn't have to do stuff like this.

wisniewskij and others added 2 commits June 19, 2026 09:21
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

This PR adds a minimalist example for pseudoselectors with planets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants